perf: resolve startup forced reflows, debounce resize layout, and optimize touch targets#141
Merged
Merged
Conversation
…imize touch targets
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR aims to improve perceived startup performance and resizing behavior, while making tab controls easier to use on touch devices. It updates both the web and desktop-app mirrored assets to keep behavior consistent across targets.
Changes:
- Adds touch-target expansion and coarse-pointer sizing tweaks for the tab UI.
- Defers initial editor geometry measurement and debounces resize-triggered layout work.
- Mirrors the same CSS/JS changes into
desktop-app/resources/copies.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| styles.css | Expands tab menu touch hitbox and adjusts tab sizing under coarse pointers. |
| script.js | Defers geometry measurement work and debounces resize layout updates. |
| desktop-app/resources/styles.css | Mirrors the same touch-target and coarse-pointer tab styling for the desktop bundle. |
| desktop-app/resources/js/script.js | Mirrors the same deferred geometry and resize debouncing logic for the desktop bundle. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1893
to
+1902
| /* Touch Hitbox Expansion for Tab Menu Button */ | ||
| .tab-menu-btn::before { | ||
| content: ''; | ||
| position: absolute; | ||
| top: 50%; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| width: 48px; | ||
| height: 48px; | ||
| } |
Comment on lines
+1893
to
+1902
| /* Touch Hitbox Expansion for Tab Menu Button */ | ||
| .tab-menu-btn::before { | ||
| content: ''; | ||
| position: absolute; | ||
| top: 50%; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| width: 48px; | ||
| height: 48px; | ||
| } |
Comment on lines
+5080
to
+5085
| // Defer DOM geometry measurement until after FCP/LCP critical paint path | ||
| setTimeout(function() { | ||
| initEditorGeometry(); | ||
| refreshEditorWidth(); | ||
| scheduleLineNumberUpdate(); | ||
| }, 100); |
Comment on lines
+5080
to
+5085
| // Defer DOM geometry measurement until after FCP/LCP critical paint path | ||
| setTimeout(function() { | ||
| initEditorGeometry(); | ||
| refreshEditorWidth(); | ||
| scheduleLineNumberUpdate(); | ||
| }, 100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.